package edu.dlnu.newbootdemo.dao;

import edu.dlnu.newbootdemo.pojo.Classes;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ClassesMapper {
    int deleteByPrimaryKey(Integer cno);

    int insert(Classes record);

    int insertSelective(Classes record);
    // 根据班级号查询学科信息
    Classes selectAllByNo(int cno);

    // 批量查询
    List<Classes> selectAll();
    List<Classes> selectBatch(@Param("cnos") List<Integer> cnos);
    Classes selectByPrimaryKey(Integer cno);

    int updateByPrimaryKeySelective(Classes record);

    int updateByPrimaryKey(Classes record);
}